package com.mmall.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.mmall.beans.PageQuery;
import com.mmall.model.SysRole;

public interface SysRoleMapper {
    int deleteByPrimaryKey(String id);

    int insert(SysRole record);

    int insertSelective(SysRole sysRole);

    SysRole selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SysRole sysRole);

    int updateByPrimaryKey(SysRole sysRole);
    
    List<SysRole> getAllRole();
    
    //List<SysRole> getAllUserRole(@Param("id") String id);

    List<SysRole> getAllByPage(SysRole sysRole);

    int countByName(@Param("name") String name, @Param("id") String id);

    List<SysRole> getByIdList(@Param("idList") List<String> idList);
    
    int countByRoleId(@Param("id") String id);
    
    List<SysRole> getPage(@Param("page") PageQuery page,@Param("sysRole") SysRole sysRole);

}